/* 管理员界面基础样式 */
:root {
    --primary: #4e73df;
    --secondary: #6f42c1;
    --success: #1cc88a;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --light: #f8f9fc;
    --dark: #2e59d9;
}

body {
    background-color: #f5f7fb;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

.dashboard-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 统计卡片样式 */
.summary-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.summary-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.summary-card .number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.summary-card .title {
    color: #6e707e;
    font-size: 0.9rem;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 用户列表表格样式 */
.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th {
    background-color: #f8f9fc;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #4e73df;
    border-bottom: 2px solid #e3e6f0;
}

.user-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e3e6f0;
}

.user-table tr:hover {
    background-color: #f8f9fc;
}

/* 操作按钮样式 */
.action-btn {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
}

.btn-outline-primary {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-danger {
    border: 1px solid var(--danger);
    color: var(--danger);
    background: transparent;
}

.btn-outline-danger:hover {
    background-color: var(--danger);
    color: white;
}

/* 角色标识 */
.role-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.role-admin { background: #e0e6ff; color: var(--primary); }
.role-sales { background: #d1f7e4; color: var(--success); }
.role-warehouse { background: #fff8e1; color: #b78103; }
.role-salesadmin { background: #e0f7f5; color: #00bcd4; }
.role-aftersales { background: #ffeef0; color: #e54b62; }

/* 表单样式 */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e3e6f0;
    font-weight: 600;
    color: #4e73df;
}

.card-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d3e2;
    border-radius: 4px;
    font-size: 1rem;
}

/* 分页样式 */
.pagination {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
}

.page-item {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-link {
    text-decoration: none;
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 4px;
}

.page-item.active .page-link {
    background: var(--primary);
    color: white;
    border: none;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: #d1d3e2;
    margin-bottom: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .d-flex {
        flex-direction: column;
        gap: 15px;
    }

    .user-table {
        display: block;
        overflow-x: auto;
    }
}